package vader.redisMode;


public class RedisKeyConfig {

    //默认缓存10分钟
    public static final Long REDIS_PORTAL_EXPIRE = 10 * 60L;

    public static final Long REDIS_ITEM_EXPIRE = 15 * 60L;

    public static final Long REDIS_DAY_EXPIRE = 24 * 60 * 60L;

    public static final String MINIAPP_COFIG = "content:miniapp:config";

    public static final String LIVECARD_LIST = "content:cms:livecard";

    public static final String ARTICLE_LIST = "content:cms:list";

    public static final String PRODUCT_LIST = "content:pms:list";

    public static final String PRODUCT_ITEM = "content:pms:item";

    public static final String ARTICLE_GUESS_LIST = "0_fancycc_home_list";

    public static final String ARTICLE_GUESS_HOME_LIST = "0_fancycc_home_user_list";

    public static final String TOPIC_CHANGE_STATUS_KEY = "content_topic_change";

    public static final String CLOCK_CHANGE_STATUS_KEY = "content_clock_change";

    public static String getClockKey(Long merchantId, Long memberId, String localDate) {
        return MINIAPP_COFIG + ":" + merchantId + ":" + memberId + ":" + localDate;
    }
}
